﻿@model CottagesOfHope.Core.Models.Tasks

@{
    ViewBag.Title = "Create Task";
    
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")

    @Scripts.Render("~/bundles/jqueryui")
    @Styles.Render("~/Content/themes/base/css")

    <script type="text/javascript">
        $(document).ready(function () {
            $("#StartDate").datepicker({
                changeMonth: true,
                changeYear: true
            });
        });
    </script>
}

<style type ="text/css">
    .text_lbl {
    color: #AAAA33;
    }
</style>
<head>
    <title>Events</title>
  
   </head>
<h2>@ViewBag.Title</h2>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    @Html.AntiForgeryToken()
    <fieldset>
        <legend>Task</legend>

        <div class="editor-field">
            @Html.LabelFor(model => model.Title, "Task Name")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.StartDate, "Start Date")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.StartDate)
           
            @Html.ValidationMessageFor(model => model.StartDate)
        </div>

          <div class="editor-label">
            @Html.LabelFor(model => model.EndDate, "End Date")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EndDate)
           
            @Html.ValidationMessageFor(model => model.EndDate)
        </div>

     <div class="editor-label">
            @Html.LabelFor(model => model.StartTime, "Start Time")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.StartTime)
            @Html.ValidationMessageFor(model => model.StartTime)
        </div>
         <div class="editor-label">
            @Html.LabelFor(model => model.EndTime, "End Time")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EndTime)
            @Html.ValidationMessageFor(model => model.EndTime)
        </div>

         <div class="editor-label">
           @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Description);
          @*  @Html.EditorFor(model => model.Description)*@
            @Html.ValidationMessageFor(model => model.Description)
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to Profile", "Index")
</div>

 @Scripts.Render("~/bundles/jquery")

